package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "bas_item_prepayment")
public class BasItemPrepayment implements Serializable {
    @Id
    private Integer id;

    /**
     * 项目id
     */
    @Column(name = "item_id")
    private Integer itemId;

    /**
     * 部分提前还款:1-是，0-否
     */
    @Column(name = "partial_prepayment")
    private Integer partialPrepayment;

    /**
     * 全部提前还款:1-是，0-否
     */
    @Column(name = "all_prepayment")
    private Integer allPrepayment;

    /**
     * 还款审核:1-资金冻结期限为0-3天，2-0-当时，3-1-24小时，0-否
     */
    @Column(name = "repayment_audit")
    private Integer repaymentAudit;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取项目id
     *
     * @return item_id - 项目id
     */
    public Integer getItemId() {
        return itemId;
    }

    /**
     * 设置项目id
     *
     * @param itemId 项目id
     */
    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    /**
     * 获取部分提前还款:1-是，0-否
     *
     * @return partial_prepayment - 部分提前还款:1-是，0-否
     */
    public Integer getPartialPrepayment() {
        return partialPrepayment;
    }

    /**
     * 设置部分提前还款:1-是，0-否
     *
     * @param partialPrepayment 部分提前还款:1-是，0-否
     */
    public void setPartialPrepayment(Integer partialPrepayment) {
        this.partialPrepayment = partialPrepayment;
    }

    /**
     * 获取全部提前还款:1-是，0-否
     *
     * @return all_prepayment - 全部提前还款:1-是，0-否
     */
    public Integer getAllPrepayment() {
        return allPrepayment;
    }

    /**
     * 设置全部提前还款:1-是，0-否
     *
     * @param allPrepayment 全部提前还款:1-是，0-否
     */
    public void setAllPrepayment(Integer allPrepayment) {
        this.allPrepayment = allPrepayment;
    }

    /**
     * 获取还款审核:1-资金冻结期限为0-3天，2-0-当时，3-1-24小时，0-否
     *
     * @return repayment_audit - 还款审核:1-资金冻结期限为0-3天，2-0-当时，3-1-24小时，0-否
     */
    public Integer getRepaymentAudit() {
        return repaymentAudit;
    }

    /**
     * 设置还款审核:1-资金冻结期限为0-3天，2-0-当时，3-1-24小时，0-否
     *
     * @param repaymentAudit 还款审核:1-资金冻结期限为0-3天，2-0-当时，3-1-24小时，0-否
     */
    public void setRepaymentAudit(Integer repaymentAudit) {
        this.repaymentAudit = repaymentAudit;
    }

    @Override
    public String toString() {
        return "BasItemPrepayment{" +
                "id=" + id +
                ", itemId=" + itemId +
                ", partialPrepayment=" + partialPrepayment +
                ", allPrepayment=" + allPrepayment +
                ", repaymentAudit=" + repaymentAudit +
                '}';
    }
}